﻿<Window x:Class="SQLDiag.UI.WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
    Title="SQLDiag UI" Height="350" Width="525" Loaded="Window_Loaded">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/RibbonControlsLibrary;component/Themes/Office2007Blue.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </Window.Resources>
    <DockPanel LastChildFill="True">
        <r:Ribbon DockPanel.Dock="Top">
            <r:Ribbon.Resources>
                <r:RibbonCommand x:Key="cmdOpen"                      
                      Executed="OnOpen_Executed"
                      LabelTitle="Open File"
                      LabelDescription="Opens a SQLDiag configuration file." 
                      LargeImageSource="Images/Large/OpenFile.png"
                      SmallImageSource="Images/Small/OpenFile.png" />

            </r:Ribbon.Resources>
            <r:Ribbon.ApplicationMenu>
                <r:RibbonApplicationMenu>
                    <r:RibbonApplicationMenuItem Command="{StaticResource cmdOpen}" />
                </r:RibbonApplicationMenu>
            </r:Ribbon.ApplicationMenu>

            <r:Ribbon.QuickAccessToolBar>
                <r:RibbonQuickAccessToolBar>
                    <r:RibbonButton Command="{StaticResource cmdOpen}" r:RibbonQuickAccessToolBar.Placement="InCustomizeMenuAndToolBar" />
                </r:RibbonQuickAccessToolBar>
            </r:Ribbon.QuickAccessToolBar>

            <r:RibbonTab Label="Home">
                <r:RibbonGroup>
                    <r:RibbonGroup.Command>
                        <r:RibbonCommand LabelTitle="File" ></r:RibbonCommand>
                    </r:RibbonGroup.Command>
                    <r:RibbonButton Command="{StaticResource cmdOpen}"></r:RibbonButton>
                    <r:RibbonButton Command="{StaticResource cmdOpen}"></r:RibbonButton>
                    <r:RibbonButton Command="{StaticResource cmdOpen}"></r:RibbonButton>
                </r:RibbonGroup>
            </r:RibbonTab>
            <r:RibbonTab Label="Test">
                <r:RibbonGroup>
                    <r:RibbonGroup.Command>
                        <r:RibbonCommand LabelTitle="Test" ></r:RibbonCommand>
                    </r:RibbonGroup.Command>
                    <r:RibbonButton Command="{StaticResource cmdOpen}"></r:RibbonButton>
                    <r:RibbonButton Command="{StaticResource cmdOpen}"></r:RibbonButton>
                    <r:RibbonButton Command="{StaticResource cmdOpen}"></r:RibbonButton>
                </r:RibbonGroup>
            </r:RibbonTab>
            
        </r:Ribbon>
        <StackPanel>
            <TreeView Name="tvPerfmon">
            </TreeView>
        </StackPanel>
    </DockPanel>
</Window>
